package com.jusda.util;

import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;

/**
 * @author:y022 05/05/2022 20:23
 * @description:
 */
public class MyFactoryBean  {
    public static void main(String[] args) {
        SoftReference<Object> objectSoftReference = new SoftReference<>(new Object());
        WeakReference<Object> objectWeakReference = new WeakReference<>(new Object());

        System.gc();

        System.out.println(objectSoftReference);
        System.out.println(objectWeakReference);
    }
}

